//
//  ZYWeChatHandler.h
//  SuiTong
//
//  Created by 石志愿 on 2020/9/3.
//  Copyright © 2020 石志愿. All rights reserved.
//

#import <Foundation/Foundation.h>

#import "ZYShareConstans.h"

NS_ASSUME_NONNULL_BEGIN

@interface ZYWeChatHandler : NSObject

/// 初始化sdk
- (void)registerApp;

/// 是否安装微信
- (BOOL)installWeChat;

/// 处理应用拉起协议
- (BOOL)HandleOpenURL:(NSURL *)url;
/// 处理应用的UniversalLink拉起协议;
- (BOOL)HandleUniversalLink:(NSUserActivity *)userActivity;

/// 分享网页
- (void)shareWebPage:(ZYThirdShareInfo *)info platform:(ZYSharePlatform)platform completion:(__nullable ZYThirdShareBlock)completion;

/// 分享图片
- (void)shareImage:(UIImage *)image thumbImage:(UIImage *)thumbImage  platform:(ZYSharePlatform)platform completion:(__nullable ZYThirdShareBlock)completion;

///分享文本
- (void)shareText:(NSString *)text platform:(ZYSharePlatform)platform completion:(__nullable ZYThirdShareBlock)completion;


/// 登录
- (void)login:(__nullable ZYThirdLoginBlock)completion;

@end

NS_ASSUME_NONNULL_END
